﻿@model IEnumerable<Comercio.Models.DBM.tb_pago>

@{
    ViewBag.Title = "Administrar tipos de pago";
}

<h2>Administrar tipos de pago</h2>

<p>
    @Html.ActionLink("Agregar modo de pago", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.id_pago)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tipo_pago)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.id_pago)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tipo_pago)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id_pago }) |
            @Html.ActionLink("Details", "Details", new { id=item.id_pago }) |
            @Html.ActionLink("Delete", "Delete", new {  id=item.id_pago })
        </td>
    </tr>
}

</table>
<div>
    @Html.ActionLink("Volver", "Admin", "Home")
</div>